package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 秒杀活动明细表
 * </p>
 *
 * @author leehao
 * @since 2019-06-13
 */
public class ActivitySeckillDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 秒杀活动主表id
     */
    private Integer seckillId;

    /**
     * 店铺/商家id
     */
    private Integer bid;

    /**
     * 商品编码
     */
    private String proCode;

    /**
     * 商品名称
     */
    private String proName;

    /**
     * 商品主图
     */
    private String proUrl;

    /**
     * 产品明细id
     */
    private Integer skuId;

    /**
     * 商品原价
     */
    private BigDecimal price;

    /**
     * 秒杀价
     */
    private BigDecimal seckillPrice;

    /**
     * 限购数量
     */
    private Integer totalNum;

    /**
     * 每用户的限购数量 为0表示不限购
     */
    private Integer limitNum;

    /**
     * 已抢购数量
     */
    private Integer buyNum;

    /**
     * 秒杀产品排列展示
     */
    private Integer sort;

    private Date createTime;

    /**
     * 版本号用作于乐观锁
     */
    @Version
    private Integer version;

    /***
     * 规格名称
     */
    @TableField(exist = false)
    private String specName;

    /**
     * 商品单位
     */
    @TableField(exist = false)
    private String proUnit;

    /**
     * 状态 同步主表状态 1有效0无效
     */
    private Integer status;

    /**
     * 是否操作返回库存 1是0否 (默认否)
     */
    private Integer stockReturn;

    /**
     * 封面图 非1:1 该字段不为空取该字段 为空取pro_url
     */
    private String coverUrl;

    /**
     * 提醒 1已提醒0未
     */
    @TableField(exist = false)
    private Integer remind;

    /**
     * 秒杀开始时间
     */
    @TableField(exist = false)
    private Date beginTime;

    /**
     * 秒杀结束时间
     */
    @TableField(exist = false)
    private Date overTime;

    /**
     * 搜索关键字
     */
    @TableField(exist = false)
    private String key;

    /**
     * 是否开始 1是 0否
     */
    @TableField(exist = false)
    private Integer hasBegin;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }
    public Integer getBid() {
        return bid;
    }

    public void setBid(Integer bid) {
        this.bid = bid;
    }
    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }
    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }
    public String getProUrl() {
        return proUrl;
    }

    public void setProUrl(String proUrl) {
        this.proUrl = proUrl;
    }
    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public BigDecimal getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(BigDecimal seckillPrice) {
        this.seckillPrice = seckillPrice;
    }
    public Integer getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }
    public Integer getLimitNum() {
        return limitNum;
    }

    public void setLimitNum(Integer limitNum) {
        this.limitNum = limitNum;
    }
    public Integer getBuyNum() {
        return buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }
    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getProUnit() {
        return proUnit;
    }

    public void setProUnit(String proUnit) {
        this.proUnit = proUnit;
    }

    public Integer getRemind() {
        return remind;
    }

    public void setRemind(Integer remind) {
        this.remind = remind;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getOverTime() {
        return overTime;
    }

    public void setOverTime(Date overTime) {
        this.overTime = overTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStockReturn() {
        return stockReturn;
    }

    public void setStockReturn(Integer stockReturn) {
        this.stockReturn = stockReturn;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Integer getHasBegin() {
        return hasBegin;
    }

    public void setHasBegin(Integer hasBegin) {
        this.hasBegin = hasBegin;
    }

    @Override
    public String toString() {
        return "ActivitySeckillDetail{" +
        "id=" + id +
        ", seckillId=" + seckillId +
        ", bid=" + bid +
        ", proCode=" + proCode +
        ", proName=" + proName +
        ", proUrl=" + proUrl +
        ", skuId=" + skuId +
        ", price=" + price +
        ", seckillPrice=" + seckillPrice +
        ", totalNum=" + totalNum +
        ", limitNum=" + limitNum +
        ", buyNum=" + buyNum +
        ", sort=" + sort +
        ", createTime=" + createTime +
        ", version=" + version +
        "}";
    }
}
